<?php
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
include '../../connection/connection.php';
include "../../value/value_kr.php";

$idrowpc = $_REQUEST['idrowpc'];

$sql = mysql_query("SELECT p.* FROM pc p where p.ip = '".$idrowpc."'", $connection);
$row = mysql_fetch_assoc($sql);

?>
<table cellpadding="0" cellspacing="0" border="0" width="96%" class="tbm1" style="margin-bottom:10px">
 <tr>
	                <td>IP</td>
	                <td><input type="text" class="intext" style="width:300px;padding-left: 5px;line-height: 26px;text-align: left;" id="ippc" name="ippc" value="<?=$row[ip]?>" /></td>
	                <td><?php echo $l_name?></td>
	                <td><input type="text" class="intext" style="width:300px;padding-left: 5px;line-height: 26px;text-align: left;" id="namepc" name="namepc" value="<?=$row[name]?>"/></td>
	                <td><?php echo $l_totalhardisk?></td>
	                <td><input type="text" class="intext" style="width:200px;padding-left: 5px;line-height: 26px;text-align: left;" id="totalhardisk" name="totalhardisk" value="<?=$row[total_hardisk]?>"/></td>
	                <td><?php echo $l_usedhardisk?></td>
	                <td><input type="text" class="intext" style="width:200px;padding-left: 5px;line-height: 26px;text-align: left;" id="usedhardisk" name="usedhardisk" value="<?=$row[used_hardisk]?>"/></td>
	                <td><input type="button" class="inbtn" style="width: 65px;"  value="<?php echo $l_new?>"  id="buttonAdd"  onclick="addPC()"/></td>
	                <td><input type="button" class="inbtn" style="width: 65px;"  value="<?php echo $l_reset?>" onclick="resetPC();" /></td>
	            </tr>   
	            <tr>
	                <td colspan="8"></td>
	                <td><input type="button" class="inbtnDisable" style="width: 65px;"  value="<?php echo $l_edit?>"  id="buttonEdit" onclick="editPC()" disabled="disabled"/></td>
	                <td><input type="button" class="inbtnDisable" style="width: 65px;"  value="<?php echo $l_delete?>"  id="buttonDelete"  disabled="disabled" 
	                onclick="if(confirm('<?=$l_areyousure?>')){ deletePC();return true;}else{return false;}"/></td>
	            </tr>
</table>  
 <?php mysql_close($connection);?>